@extends('layouts.web')

@section('title', $page->title.'_'.env('APP_NAME').'_我们只推荐好网站')
@section('keywords', $page->title.','.env('APP_NAME'))
@section('description', $page->description)

@section('content')
    <div class="main-container">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md2">
                <div class="layui-card">
                    <div class="layui-card-header font-c-b">{{ env('APP_NAME') }}</div>
                    <div class="layui-card-body site-list-body">
                        <ul class="news-nav-list one-list">
                            @foreach($pages as $v)
                                <li @if($v->name == $name) class="hover" @endif>
                                    <a href="{{ url('/pages/'.$v->name) }}.html" title="{{ $v->title }}">
                                        {{ $v->title }}
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
            <div class="layui-col-md10">
                <div class="layui-card">
                    <div class="layui-card-header site-info-top site-padding article-info">
                        <h2>{{ $page->title }}</h2>
                    </div>
                    <div class="layui-card-body article-content">
                        {!! $page->content !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
